/**
补货
*/
<template>
	<div>
		<div class="text">用户信息</div>
		<base-form :model.sync="model" :form-items="formItems" :is-form="false"/>
	</div>
	
</template>

<script>
import BaseForm from '../BaseForm/BaseForm.vue';

const options  =  [{
        value: 'zhinan',
        label: '江苏省',
        children: [
            {
                value: 'shejiyuanze',
                label: '苏州市',
                children: [
                    {
                        value: 'yizhi',
                        label: '园区'
                    }, {
                        value: 'fankui',
                        label: '高新区'
                    }, {
                        value: 'xiaolv',
                        label: '吴中区'
                    }, {
                        value: 'kekong',
                        label: '姑苏区'
                    }
                ]
            }, 
            {
                value: 'daohang',
                label: '南通市',
                children: [
                    {
                        value: 'cexiangdaohang',
                        label: '海安'
                    }, {
                        value: 'dingbudaohang',
                        label: '通州区'
                    }
                ]
            }
        ]
    }];
export default {
	name: 'Resend',
	components: {
		BaseForm
	},
	props: {
		value: {
			type: Object,
			default: () => ({})
		}
	},
	data() {
		return {
			formItems: [
				{
					label: '用户姓名',
					prop: 'asmOrderSales.customerName',
					type: 'text',
					component: 'el-input',
					span: 12
				},
				{
					label: '联系手机',
					prop: 'asmOrderSales.customerPhone',
					type: 'text',
					reg: /^1([3456789]\d{0,9})?$/,
					len: 11,
					component: 'reg-input',
					required: true,
					span: 12
				},
				{
					label: '客户地址',
					prop: 'asmOrderSales.cascaderCitys',
					type: 'cascader',
					component: 'el-cascader',
					options: options,
					required: true,
					style: { width: '100%' }
				},
				{
					label: '详细地址',
					prop: 'asmOrderSales.addDetail',
					type: 'text',
					component: 'el-input',
					required: true,
					span: 12
				},
			]
		}
	},
	computed: {
		model: {
			get() {
				return this.value;
			},
			set(val) {
				this.$emit('input', val);
			}
		}
	},
	methods: {

	}
}
</script>

<style scope>
.text{
    color: #AEAEAE;
 }
</style>
